package com.swx.identityservice.mapper;


import com.swx.identityservice.dtos.role.RoleOutputDto;
import com.swx.identityservice.models.ScbpRole;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ScbpRoleMapper extends Mapper<ScbpRole> {

    List<RoleOutputDto> selectAllWithOutDeleted(
            @Param(value = "dealrole") String DealRole,
            @Param(value = "name") String Name,
            @Param(value = "affiliateddept") String AffiliatedDept);

    List<ScbpRole> selectAllRoles();


    int selectCountByDeptId(Integer id);

    List<RoleOutputDto> selectRolesByDeptId(Integer [] id);

}

